package kr.co.bettersoftportal.site.management.service;


import kr.co.bettersoftportal.site.domain.Comment;
import kr.co.bettersoftportal.site.management.dao.CommentDao;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class CommentServiceImpl implements CommentService{

    @Autowired
    private CommentDao commentDao = null;
    
    // Comment Service
    public List getCommentListByBoardNo(Comment comment){
        return commentDao.getCommentListByBoardNo(comment);
    }

    public String getTotalCountByNo(Comment comment){
        return commentDao.getTotalCountByBoardNo(comment);
    }

    public Comment getCommentByNo(String comment_no){
        return commentDao.getCommentByNo(comment_no);
    }

    public String writeComment(Comment comment){
        return commentDao.writeComment(comment);
    }

    public String updateComment(Comment comment){
        return commentDao.updateComment(comment);
    }

    public String deleteComment(Comment comment){
        return commentDao.deleteComment(comment);
    }


}
